package blog.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * 分类
 */
@Data @NoArgsConstructor
public class CateGory {
    //分类Id
    private Integer cateGoryId;
    //父级分类Id
    private Integer cateGoryPid;
    //分类名
    private String cateGoryName;
    //分类描述
    private String cateGoryDescription;
    //分类顺序
    private Integer cateGoryOrder;
    //分类图标
    private String cateGoryIcon;
    // 文章数量(非数据库字段)
    private Integer articleCount;
    //子分类
    private List<CateGory> subCateGoryList;

    public CateGory(Integer cateGoryId) {
        this.cateGoryId = cateGoryId;
    }
}
